/****************************************
 * Copyright (c) 2015 NiuWa.
 * All rights reserved.
 * Created on 2015年4月7日
 * 
 * Contributors:
 * 	   bwz - initial implementation
 ****************************************/
package com.niuwa.p2p.vo.front.product;

import java.math.BigDecimal;

import com.niuwa.p2p.core.utils.DictConstant;


/**
 * @title 产品记录vo
 *
 * @author bwz
 * @version 1.0
 * @created 2015年4月7日
 */
public class FrontInvestRecordVo {
	
	private String investuser;
	
	private BigDecimal investmoney;
	
	private Long investdate; //时间戳格式
	
	private String investmethod; //投资方式
	
	private Boolean isplaninvestuser; //是否是计划投资用户
	

	public String getInvestuser() {
		return investuser;
	}

	public void setInvestuser(String investuser) {
		if(investuser.length() > 2){
			investuser = investuser.substring(0,2) + "****" + investuser.substring(investuser.length()-1);
		}else{
			investuser = investuser.substring(0,1) + "****";
		}
		this.investuser = investuser;
	}

	public Long getInvestdate() {
		return investdate;
	}

	public void setInvestdate(Long investdate) {
		this.investdate = investdate;
	}

	public String getInvestmethod() {
		return investmethod;
	}

	public void setInvestmethod(String investmethod) {
		this.investmethod = investmethod;
	}

	public Boolean getIsplaninvestuser() {
		return isplaninvestuser;
	}

	public void setIsplaninvestuser(String investmethod) {
		if(investmethod.equals(DictConstant.InvestMethod.PLAN.getCode())){
			this.isplaninvestuser = true;
		}else{
			this.isplaninvestuser = false;
		}
	}

	public BigDecimal getInvestmoney() {
		return investmoney;
	}

	public void setInvestmoney(BigDecimal investmoney) {
		this.investmoney = investmoney;
	}
	
	
}
